package model.admin;

import myutil.Connect;
import vo.DepartmentDetailsVo;

public class ModifyDepartmentMo {

	public Boolean addNewDepartment(DepartmentDetailsVo department,String type) {
		String query = "INSERT INTO department_details (" + "department_name, "
				+ "start_year, " + "description, " + "status) VALUES ('"
				+ department.getDepartment_name() + "', '"
				+ department.getStart_year() + "', '"
				+ department.getDescription() + "', '" + "1');";
		Connect c = new Connect();
		try {
			c.dml(query);
			c.logger(type, "Insert");
			return true;
		} catch (Exception e) {
			// TODO: handle exception
			return false;
		}
	}
}